package com.ddx.dao;

import com.ddx.pojo.UserFollow;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserFollowMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserFollow record);

    int insertSelective(UserFollow record);

    UserFollow selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserFollow record);

    int updateByPrimaryKey(UserFollow record);

    List<UserFollow> getList4userId(@Param(value = "userId") Integer userId);

    int countByUserId(@Param(value = "userId") Integer userId);

    int countByFollowId(@Param(value = "followId") Integer followId);

    UserFollow selectByUserIdAndFollowId(@Param(value = "userId") int userId, @Param(value = "followId") int followId);
}